package com.xjlsoft.weather.enums;

/**
 * 请求类型枚举
 *
 */
public enum DataTypeEnum {

	Hour("hour", " 每小时数据"),
	Day("day", " 日平均数据"),
	Mon("mon","月平均数据"),
	Week("week","周平均数据"),
	Year("year","年平均 数据"),
	Day1("day1","1天的风速相关数据"),
	Day7("day7","1天的风速相关数据"),
	Day30("day30","1天的风速相关数据");





    private final String value;

    private final String message;

    DataTypeEnum(String value, String message) {
        this.value = value;
        this.message = message;
    }

    public String getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

    public static String valueof(String value) {
        for (DataTypeEnum e : DataTypeEnum.values()) {
            if (e.getValue().equals(value)) {
                return e.getMessage();
            }
        }
        return null;
    }
    }
